public class BooleanModel extends HCIModelAdapter
Java class is a Boolean container; It extends the java.lang.Boolean class
by adding features to marshal this object type.CurrencyModel,
StringModel,
DateModel,
NumberModelThe XML APIs specify the following XSD fragment:
XSD Fragment
<xs:element name="boolean">
<xs:complexType>
<xs:attribute name="value" type="xs:boolean"/>
</xs:complexType>
</xs:element>
| Modifier and Type | Field and Description |
|---|---|
static String |
TAG_NAME
The XML tag name of this data model: "boolean"
|
| Constructor and Description |
|---|
BooleanModel()
Constructs a
BooleanModel with a false Boolean. |
BooleanModel(boolean value)
Constructs a
BooleanModel with a given boolean. |
| Modifier and Type | Method and Description |
|---|---|
void |
addCharacterData(String cData)
Adds character data to the content element.
|
void |
addChild(String tagName,
XMLMarshallable child)
Adds a child to the object, the
child representing
the marshallable object which must be added to the element. |
String |
getTagName()
Gets the XML tag name of the HCI model.
|
boolean |
getValue()
Gets the boolean contained by the
BooleanValue. |
void |
marshalAttributes(XMLOutputter output)
Gives an XML representation of the attributes of an object.
|
void |
marshalChildren(XMLOutputter output)
Gives an XML representation of the child objects of an object.
|
void |
setAttributes(XMLAttributes atts)
Sets the attributes of the XML representation of the element being
processed.
|
void |
setValue(boolean value)
Sets the boolean contained by the
BooleanValue. |
marshalpublic static final String TAG_NAME
public BooleanModel()
BooleanModel with a false Boolean.public BooleanModel(boolean value)
BooleanModel with a given boolean.value - The boolean of the BooleanModelpublic boolean getValue()
BooleanValue.BooleanValuepublic void setValue(boolean value)
BooleanValue.value - The boolean contained by the BooleanValuepublic void addCharacterData(String cData)
XMLMarshallablecData - The character data to be addedpublic void addChild(String tagName, XMLMarshallable child)
XMLMarshallablechild representing
the marshallable object which must be added to the element.tagName - The name of tag for the childchild - The child to be addedpublic void setAttributes(XMLAttributes atts)
XMLMarshallableatts - The XML attributes of the current elementpublic void marshalAttributes(XMLOutputter output)
IXMLMarshallableoutput - The XML output to marshal the object attributes intopublic void marshalChildren(XMLOutputter output)
IXMLMarshallableoutput - The XML output to marshal the child objects intopublic String getTagName()
ITagNameProvider